# filename: example8_10.py

class StudentClass:
    __count = 0

    def __init__(self, name, age):
        self.name = name
        self.__age = age
        StudentClass.__count += 1

    @classmethod
    def get_count(cls):
        return StudentClass.__count

    def get_age(self):
        return self.__age


stu1 = StudentClass("Zhang San", 18)
stu2 = StudentClass("Li Si", 19)
print(StudentClass.get_count())
print(stu1.name, stu1.get_age())
print(stu2.name, stu2.get_age())